<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var num = 13.45;
        console.log(Math.round(num))
        console.log(Math.floor(num))
        console.log(Math.ceil(num))
        console.log(Math.max(4,5,8))
        console.log(Math.min(1,2,3))
        console.log(Math.random())
        var arr = [4,5,6];
        // Math.max
        // var max = arr[0];
        // for(var i=1;i<arr.length;i++){
        //     if(arr[i]>max){
        //         max = arr[i];
        //     }
        // }
        // console.log(max)
        console.log(Math.max(...arr))
        console.log(Math.min(...arr))
    </script>
</body>
</html>